﻿package net.wangit.demo.element;

import net.wangit.Row;
import net.wangit.context.ActionContext;
import net.wangit.support.ElementWriter;
import net.wangit.view.element.ElementComponent;

public class HelloElementWriter implements ElementWriter {

  public void write(ActionContext ac, StringBuffer html, ElementComponent ec,
      Row row) {
    String userName = ac.getVisitor().getUser().get("username");
    html.append("hello ").append(userName).append("!");
  }

}
